<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="../../js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../js/form/jquery.form.js"></script>
<link type="text/css" href="../../css/Info.css" rel="stylesheet"/>
<title>公司信息</title>
<script type="text/javascript">
var companyObj;
var companyId;
$(document).ready(function() {
	companyObj =window.companyObj;
	companyId = companyObj[0].companyId;
	$("#companyDTO\\.companyName").val(companyObj[0].companyName);
	$("#companyDTO\\.companyLoginName").val(companyObj[0].companyLoginName);
	$("#companyDTO\\.companyAdmin").val(companyObj[0].companyAdmin);
	$("#companyDTO\\.adminCard").val(companyObj[0].adminCard);
	$("#companyDTO\\.companyPhone").val(companyObj[0].companyPhone);
	$("#companyDTO\\.companyEmail").val(companyObj[0].companyEmail);
	$("#companyRemarks").html(companyObj[0].companyRemarks);
	$("#companyDTO\\.companyStatus").val(companyObj[0].companyStatus);
	$("#companyDTO\\.companyLogo").val(companyObj[0].companyLogo);
	$("#companyDTO\\.companyPwd").val(companyObj[0].companyPwd);
	$("#companyDTO\\.companyId").val(companyId);
});
$.saveInfo = function(){
	var remarks = $("#companyRemarks").html();
	$("#companyDTO\\.companyRemarks").val(remarks);
	var options = {
			type : 'post',
			dataType : 'text',
			url : '../../company/updateCompany.action',
			success : function(msg) {
				alert("修改成功!");
			}
	}
	$("#updateForm").ajaxSubmit(options);
};
</script>
</head>
<body>
<div>
<div class="mineInfo">
<span id="info1">公司信息&nbsp;COMPANYINFO</span>
<hr style="height:1px;border:none;border-top:1px solid #555555;" />
</div>
<div id="fromContent">
<form name="updateForm" id="updateForm" method="post">
<ul class="nopoint">
<li><label for="companyDTO.companyName">企业名称:</label><input type="text" id="companyDTO.companyName" name="companyDTO.companyName"></li>
<li><label for="companyDTO.companyAdmin">法人姓名:</label><input type="text" id="companyDTO.companyAdmin" name="companyDTO.companyAdmin"></li>
<li><label for="companyDTO.adminCard">身份证号:</label><input type="text" id="companyDTO.adminCard" name="companyDTO.adminCard"></li>
<li><label >联系方式:</label><img src="../../images/phone.png" class="im"/><input style="width:165px;margin-left:40px;" type="text" id="companyDTO.companyPhone" name="companyDTO.companyPhone"></li>
					<li style="margin-left:70px;"><img src="../../images/email.png" class="im"/><input style="width:165px;margin-left:40px;" type="text" id="companyDTO.companyEmail" name="companyDTO.companyEmail"></li>
<li><label for="companyDTO.companyRemarks">企业简介:</label></li>
<div id="companyRemarks" contenteditable="true"></div>
<li><input type="button" value="保 存" onclick="$.saveInfo()"/></li>
</ul>
<!--隐藏传值 -->
<input type="hidden" value="" name="companyDTO.companyId" id="companyDTO.companyId"/>
<input type="hidden" value="" name="companyDTO.companyRemarks" id="companyDTO.companyRemarks"/>
<input type="hidden" value="" name="companyDTO.companyLogo" id="companyDTO.companyLogo"/>
<input type="hidden" value="" name="companyDTO.companyStatus" id="companyDTO.companyStatus"/>
<input type="hidden" value="" name="companyDTO.companyPwd" id="companyDTO.companyPwd">
<input type="hidden" value="" name="companyDTO.companyLoginName" id="companyDTO.companyLoginName">
</form>
</div>
</div>
</body>
</html>